//
//  YWTextStatus.m
//  YWPhotoEditMaster
//
//  Created by jun peng on 2023/8/15.
//

#import "YWTextStatus.h"

@interface YWTextStatus ()

@property(nonatomic,copy)NSString *tag;
@end

@implementation YWTextStatus

- (instancetype)init
{
    self = [super init];
    if (self) {
        if(self.tag == nil) {
            NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
            formatter.dateFormat = @"yyyyMMddHHmmss";
            int x = arc4random() % 100;
            NSString *name = [formatter stringFromDate:[NSDate date]];
            NSString *tag = [NSString stringWithFormat:@"%@%d",name,x];
            self.tag = tag;
            
            self.textColor = [UIColor whiteColor];
            
            self.transX = 0;
            self.transY = 0;
            self.scale = 1;
            self.rotation = 0;
            
            
        }
    }
    return self;
}





@end
